package com.huey.utils.security;

import com.alibaba.fastjson.JSONObject;

import java.io.Serializable;
import java.util.Collection;

/**
 * 自定义类一般你需要token携带的额参数
 */
public class LoginDTO  implements Serializable {

    /**
     * 接入方id
     */
    private Long appId;

    /**
     * 租户id
     */
    private String tenantId;

    /**
     * 商户id
     */
    private Long merchantId;

    /**
     * 商户code
     */
    private String merchantCode;

    /**
     * 帐号id
     */
    private Long accountId;

    /**
     * 帐号
     */
    private String username;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 姓名
     */
    private String name;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 拥有的角色id集合
     */
    private Collection<Long> roleIdList;

    public Long getAppId() {
        return appId;
    }

    public void setAppId(Long appId) {
        this.appId = appId;
    }

    public String getTenantId() {
        return tenantId;
    }

    public void setTenantId(String tenantId) {
        this.tenantId = tenantId;
    }

    public Long getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Long merchantId) {
        this.merchantId = merchantId;
    }

    public Long getAccountId() {
        return accountId;
    }

    public void setAccountId(Long accountId) {
        this.accountId = accountId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public Collection<Long> getRoleIdList() {
        return roleIdList;
    }

    public void setRoleIdList(Collection<Long> roleIdList) {
        this.roleIdList = roleIdList;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    @Override
    public String toString() {
        return JSONObject.toJSONString(this);
    }
}
